﻿using CustomORM.Examples.Entities;
using CustomORM.Mapping;
using FluentNHibernate.Mapping;

namespace CustomORM.Examples.MappingRepository
{
    class EmployeeMapNh : ClassMap<NhEmployee>
    {
        public EmployeeMapNh()
        {
            Table("Employees");
            Id(x => x.EmployeeID, "`Employee ID`");
            Map(x => x.LastName, "`Last Name`");
            Map(x => x.FirstName, "`First Name`");
            Map(x => x.Title, "Title");
            Map(x => x.City, "City");
            Map(x => x.Address, "Address");
        }
    }
}